Optimal. Leaf size=132 \[ \frac {2 \sqrt {2} F_1\left (\frac {1}{2}+m;-\frac {1}{2},-n;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x)),-\frac {d (1+\sin (e+f x))}{c-d}\right ) \sec (e+f x) \sqrt {1-\sin (e+f x)} (a+a \sin (e+f x))^{1+m} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}}{f (1+2 m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 132, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {3087, 145, 144,
143} \begin {gather*} \frac {2 \sqrt {2} \sqrt {1-\sin (e+f x)} \sec (e+f x) (a \sin (e+f x)+a)^{m+1} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n} F_1\left (m+\frac {1}{2};-\frac {1}{2},-n;m+\frac {3}{2};\frac {1}{2} (\sin (e+f x)+1),-\frac {d (\sin (e+f x)+1)}{c-d}\right )}{f (2 m+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 143
Rule 144
Rule 145
Rule 3087
Rubi steps
\begin {align*} \int (a-a \sin (e+f x)) (a+a \sin (e+f x))^m (c+d \sin (e+f x))^n \, dx &=\frac {\left (\sec (e+f x) \sqrt {a-a \sin (e+f x)} \sqrt {a+a \sin (e+f x)}\right ) \text {Subst}\left (\int \sqrt {a-a x} (a+a x)^{-\frac {1}{2}+m} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{f}\\ &=\frac {\left (\sqrt {2} \sec (e+f x) (a-a \sin (e+f x)) \sqrt {a+a \sin (e+f x)}\right ) \text {Subst}\left (\int \sqrt {\frac {1}{2}-\frac {x}{2}} (a+a x)^{-\frac {1}{2}+m} (c+d x)^n \, dx,x,\sin (e+f x)\right )}{f \sqrt {\frac {a-a \sin (e+f x)}{a}}}\\ &=\frac {\left (\sqrt {2} \sec (e+f x) (a-a \sin (e+f x)) \sqrt {a+a \sin (e+f x)} (c+d \sin (e+f x))^n \left (\frac {a (c+d \sin (e+f x))}{a c-a d}\right )^{-n}\right ) \text {Subst}\left (\int \sqrt {\frac {1}{2}-\frac {x}{2}} (a+a x)^{-\frac {1}{2}+m} \left (\frac {a c}{a c-a d}+\frac {a d x}{a c-a d}\right )^n \, dx,x,\sin (e+f x)\right )}{f \sqrt {\frac {a-a \sin (e+f x)}{a}}}\\ &=\frac {2 \sqrt {2} F_1\left (\frac {1}{2}+m;-\frac {1}{2},-n;\frac {3}{2}+m;\frac {1}{2} (1+\sin (e+f x)),-\frac {d (1+\sin (e+f x))}{c-d}\right ) \sec (e+f x) \sqrt {1-\sin (e+f x)} (a+a \sin (e+f x))^{1+m} (c+d \sin (e+f x))^n \left (\frac {c+d \sin (e+f x)}{c-d}\right )^{-n}}{f (1+2 m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F]
time = 12.75, size = 0, normalized size = 0.00 \begin {gather*} \int (a-a \sin (e+f x)) (a+a \sin (e+f x))^m (c+d \sin (e+f x))^n \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.35, size = 0, normalized size = 0.00 \[\int \left (a -a \sin \left (f x +e \right )\right ) \left (a +a \sin \left (f x +e \right )\right )^{m} \left (c +d \sin \left (f x +e \right )\right )^{n}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+a\,\sin \left (e+f\,x\right )\right )}^m\,\left (a-a\,\sin \left (e+f\,x\right )\right )\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^n \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________